﻿using Rvz.Game.Main.State;

namespace Rvz.Game.Main.Entities.Zombies.States
{
    public class ZombieCollisionState : ZombieStateBase
    {
        private readonly Zombie _blockingZombie;

        public ZombieCollisionState(Zombie blockingZombie)
        {
            _blockingZombie = blockingZombie;
        }

        public override void ProcessState(Zombie sender, GameState gameState)
        {
            sender.CollisionShape.CollideAgainstMove(_blockingZombie.CollisionShape, .1f, .1f);
        }
    }
}
